<?php
namespace Action;

class User {
	public function Index() {
		global $o;
		if ($_GET ['ajax']) {
			$aList = $o->Db->ls ( array (
					'table' => 'users' 
			) );
			exit ( json_encode ( $aList ) );
		} else {
			require_once ROOT . '/template/user_index.html';
		}
	}

}

?>